//
//  XRBaseCollectionViewController.h
//  YWBaseFrameWork
//
//  Created by CoderYee on 2017/2/21.
//  Copyright © 2017年 NeiQuan. All rights reserved.
//

#import "XRBaseViewController.h"
@class XRCommonBaseCollectionCell;
@interface XRBaseCollectionViewController : XRBaseViewController

@property(nonatomic,strong)UICollectionView  *collectionView;
@property(nonatomic,retain)NSMutableArray    *dataListArray; //判断是否有分栏
@property(nonatomic,assign)BOOL              hasTabbar; //判断是否有分栏

//减少子类重复创建轮子
-(XRCommonBaseCollectionCell*)configCollectionView:(UICollectionView *)collectionView  cellforCollectionCell:(Class)cellClass  inexPath:(NSIndexPath *)indexPath;
-(void)collectionViewRegisterCollectionCell;

//添加刷新事件
-(void)collectionViewPullupHeaderRefresh:(void (^)(void))headerBlock;
-(void)collectionViewPullDownFootRefresh:(void (^)(void))footerBlock;
//停止刷新
-(void)collectionViewViewEndRefresh;

@end
